//
//  ClassHeaderView.h
//  HeaderViewTapAnimation
//
//  Created by YouXianMing on 15/9/16.
//  Copyright (c) 2015年 ZiPeiYi. All rights reserved.
//


//#import "RotateView.h"
#import <UIKit/UIKit.h>
@class ClassHeaderView;

@protocol CustomHeaderFooterViewDelegate <NSObject>

@optional

/**
 *  CustomHeaderFooterView's event.
 *
 *  @param customHeaderFooterView CustomHeaderFooterView object.
 *  @param event                  Event data.
 */
- (void)customHeaderFooterView:(ClassHeaderView *)customHeaderFooterView event:(id)event;

@end

@interface ClassHeaderView : UITableViewHeaderFooterView


@property (nonatomic, weak)  id <CustomHeaderFooterViewDelegate>   delegate;

/**
 *  CustomHeaderFooterView's data.
 */
@property (nonatomic, weak)  id                data;

/**
 *  UITableView's section.
 */
@property (nonatomic)        NSInteger         section;


/**
 *  Build subview, override by subclass.
 */
- (void)buildSubview;

/**
 *  Load content, override by subclass.
 */
- (void)loadContent;


/**
 *  Change to normal state.
 *
 *  @param animated Animated or not.
 */
- (void)normalStateAnimated:(BOOL)animated;

/**
 *  Change to extended state.
 *
 *  @param animated Animated or not.
 */
- (void)extendStateAnimated:(BOOL)animated;



@end
